package com.xwzn.resident;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

/**
 * @Description 生活服务详情点击后跳转的详细界面
 * @Author HanKaiYang
 * @CreateDate 2019/12/23 11:05
 * @Version 1.0
 */
public class ShfwItemActivity extends AppCompatActivity {

    //顶部返回按钮
    private ImageView ivTitleBack;
    //标题
    private TextView tvShfwItemTitle;
    //时间
    private TextView tvShfwItemDate;
    //内容
    private TextView tvShfwItemContent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shfw_item);
        initView();
    }

    /**
     * @deprecated 初始化视图
     * @author HanKaiYang
     * @createDate 2019/12/23 11:17
     * @version 1.0
     */
    private void initView() {
        ivTitleBack = (ImageView) findViewById(R.id.iv_title_back);
        ivTitleBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
        tvShfwItemTitle = (TextView) findViewById(R.id.tv_shfw_item_title);
        tvShfwItemDate = (TextView) findViewById(R.id.tv_shfw_item_date);
        tvShfwItemContent = (TextView) findViewById(R.id.tv_shfw_item_content);

        tvShfwItemTitle.setText(getIntent().getStringExtra("title"));
        tvShfwItemDate.setText(getIntent().getStringExtra("date"));
        tvShfwItemContent.setText(getIntent().getStringExtra("content"));
    }
}
